<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDevelopHistoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('develop_histories', function (Blueprint $table) {
            $table->increments('id');
            $table->string('time', 30)->comment('时间');
            $table->string('value', 50)->comment('内容');
            $table->unsignedInteger('number')->default(0)->comment('显示顺序')->index();
            $table->boolean('is_show')->default(1)->comment('是否显示');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('develop_histories');
    }
}
